package com.alex.entity;

import com.cxytiandi.jdbc.annotation.AutoId;
import com.cxytiandi.jdbc.annotation.Field;
import com.cxytiandi.jdbc.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户表
 *
 * @author Alex.shu
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "user", author = "Alex.shu", desc = "用户表")
public class User implements Serializable {

    @AutoId
    @Field(value = "id", desc="id")
    private Long id;

    @Field(value = "city", desc = "城市")
    private String city;

    @Field(value = "name", desc="姓名")
    private String name;
}
